﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ZKManageMX.aspx.cs" Inherits="Comod_StockManage" %>
<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
    <title>转库明细</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/changerows.js"></script>
    <script type="text/javascript" src="../js/rl.js"></script>
    <script type="text/javascript">
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }
    
      function AllPrintData(all,type,band,txtname,modul,ddrzt,stokleid)
    {
             window.open("DrawPrint8.aspx?all="+escape(all)+"&type="+escape(type)+"&band="+escape(band)+"&txtname="+escape(txtname)+"&modul="+escape(modul)+"&ddrzt="+escape(ddrzt)+"&stokleid="+escape(stokleid)+"","","width=1000px,height=800px,left=100px,top=30px,scrollbars=yes");
            return false;
 
    }
     function addbjnum(stockId,action)
     {
     var pos,str,para,parastr,tempstr1; 
        tempstr=""; 
        str = window.location.href; 
        pos = str.indexOf("?") 
        parastr = str.substring(pos+1); 
     var result =window.showModalDialog("addbjnum.aspx?"+parastr+"&action="+action+"&id="+stockId,"","dialogWidth:600px;dialogHeight:400px;dialogLeft:300px;dialogTop:200px;scroll:yes;help:0;status:no;");
             if(result!=undefined)
             {
              window.location="BJManage.aspx?"+parastr+"";
             }
              else
              {
              if(action=="ch")
              {
                alert('您未出库任何备件！');
              }
              if(action=="jh")
              {
                alert('您未进任何备件！');
              }
               if(action=="th")
              {
                alert('您未退任何备件！');
              }
              }
       }
        function selectInfo(stockId)
     {
       var pos,str,para,parastr,tempstr1; 
        tempstr=""; 
        str = window.location.href; 
        pos = str.indexOf("?") 
        parastr = str.substring(pos+1); 
       window.open("addbjnum.aspx?"+parastr+"&id="+stockId,"","dialogWidth:600px;dialogHeight:400px;dialogLeft:300px;dialogTop:200px;scroll:yes;help:0;status:no;");
           }
    </script>


</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="2%" height="1%">
                    <img alt="" src="../images/module.gif" width="20" height="22"/></td>
                <td style="width: 232px">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td></tr>
               <tr> <td colspan="2" width="99%" align="right" style="height: 25px">
                    <img src="../images/search.gif" alt="搜索" width="16" height="16" />类型：<asp:TextBox ID="txttype" runat="server" CssClass="input1" Width="100"></asp:TextBox>品牌：<asp:TextBox
                        ID="txtband" runat="server" CssClass="input1" Width="100"></asp:TextBox>名称：<asp:TextBox ID="txtname" runat="server" CssClass="input1" Width="100"></asp:TextBox>型号：<asp:TextBox
                        ID="txtModul" runat="server" CssClass="input1" Width="100"></asp:TextBox>状态：<asp:DropDownList
                                ID="ddrzt" runat="server">
                                <asp:ListItem Value="0">—请选择状态—</asp:ListItem>
                                <asp:ListItem Value="2">转库</asp:ListItem>
                            </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" OnClick="btnSearch_Click"  /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound">
            <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>
              <asp:TemplateField HeaderText="选择" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("Maintid") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="40px" HorizontalAlign="Center" />
                </asp:TemplateField>
                 <asp:BoundField HeaderText="类型" DataField="ComoditiesType" >
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField HeaderText="品牌" DataField="Brand" >
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField HeaderText="名称" DataField="ComoditiesName" >
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="型号" DataField="Specifications" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="数量" DataField="GuestId" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:BoundField HeaderText="时间" DataField="MaintDate" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:BoundField HeaderText="转库仓库" DataField="WarehouseName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <asp:BoundField HeaderText="备注" DataField="SalesCode" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="状态" DataField="AuditUserName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="操作人" DataField="DevicState" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
             <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckFlag" runat="server"  />
                    </ItemTemplate>
                    <ItemStyle Width="40px" HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
            <td style="width: 160px">
                </td>
                <td align="right">
                  <uc1:PageNavigator ID="PageNavigator1" DataId="GvData" ShowType="Text" ConnectionString="connstr" PageSize="20" runat="server" />
                </td>
                <td align="right" style="height: 22px">
                <input type="checkbox" name="chkall"  onclick="CheckAll(this.form)" value="on"/><font color="#FF0000">全选</font>
                <asp:Button ID="btnDel" runat="server" CssClass="submit" OnClick="btnDel_Click" OnClientClick="return confirm('确定要删除吗?')"
                        Text="删除" />
                    <asp:Button ID="Button1" runat="server" CssClass="submit" OnClick="Button1_Click"
                        Text="打印" />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="Hidid" runat="server" />
       
        <asp:HiddenField ID="Hidware" runat="server" />
        <asp:HiddenField ID="HFroid" runat="server" />
        <asp:Label ID="Label2" runat="server"></asp:Label>
        <asp:HiddenField ID="stokid" runat="server" />
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>